package imageUtility;

//package knn;

public class ImageDistancePair implements Comparable<ImageDistancePair>{
	private Double dis;
	private ImageData image;
	
	ImageDistancePair(double dis, ImageData currImage) {
		this.dis = dis;
		this.image = currImage;
	}
	
	@Override
	public int compareTo(ImageDistancePair o) {
		return dis.compareTo(o.dis);
	}
	
	public ImageData getImage() {
		return image;
	}
	
	public Double getDistance() {
		return dis;
	}
}